package com.example.mangroves.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mangroves.entity.GeoType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface GeoTypeMapper extends BaseMapper<GeoType> {
    @Select("SELECT id FROM geo_types WHERE name = #{name}")
    Integer findTypeIdByName(@Param("name") String name);
}
